<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class='app-container'>
    <el-form ref="form" :model="s_params" :rules="rules" label-width="100px" id="mvcfm">
      <el-button @click="gotoPage('/mes/systemadmin/ReportDetail?'+vueparams+'')" type='primary' size="mini"><i class='fa fa-reply'></i>返回</el-button>
      <div class="form-unit">
        <span class="mvc-title-left"> 报表参数 </span>
      </div>
      <el-table :data="s_params">
        <el-table-column label="参数" prop="name">
        </el-table-column>
        <el-table-column label="参数值" prop="">
        </el-table-column>
        <el-table-column label="参数说明" prop="description">
        </el-table-column>
      </el-table>
      <div class="form-unit">
        <span class="mvc-title-left"> 报表结果 </span>
      </div>
      <div>
      </div>
      {{getChartjs(pageContext,infomap,t_report.type,t_report.description)}}
    </el-form>
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'ReportChart',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        s_params: [],
        loading: false,
        rules: {}
      }
    },
    created() {
      this.getData();
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/mes/systemadmin/ReportAdminAction/reportChart?' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
        })
      },
    },
  }
</script>
